﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MicroTest
{
    /// <summary>
    /// 年级
    /// </summary>
    public class GradeStruct
    {
        public int GradeID = 0;
        public string GradeStr = string.Empty;
        public override string ToString()
        {
            return GradeStr;
        }
    }
    /// <summary>
    /// 班级
    /// </summary>
    public class ClassStruct
    {
        public int ClassID = 0;
        public string ClassStr = string.Empty;
        public override string ToString()
        {
            return ClassStr;
        }
    }
    /// <summary>
    /// 学科
    /// </summary>
    public class SubjectStruct
    {
        public int SubjectID = 0;
        public string SubjectStr = string.Empty;
        public override string ToString()
        {
            return SubjectStr;
        }
    }
    public class ExamStruct
    {
        public string ExamID = string.Empty;
        public string ExamStr = string.Empty;
        public override string ToString()
        {
            return ExamStr;
        }
    }
    /// <summary>
    /// 练习册
    /// </summary>
    public class LxcStruct
    {
        public string LxcID = string.Empty;
        public string LxcStr = string.Empty;
        public override string ToString()
        {
            return LxcStr;
        }
    }
    /// <summary>
    /// 章节
    /// </summary>
    public class ZjStruct
    {
        public string ZjID = string.Empty;
        public string ZjStr = string.Empty;
        public override string ToString()
        {
            return ZjStr;
        }
    }
    /// <summary>
    /// 登录类型
    /// </summary>
    public enum LoginType
    {
        LT_DOC,
        LT_NET
    }

    public enum NetMissonType
    {
        NMT_LOGIN,
        NMT_NJ,
        NMT_BJ,
        NMT_XK,
        NMT_KS,
        NMT_ST,
        NMT_LXC,//练习册
        NMT_ZJ,//章节
        NMT_EXAM//创建微测
    }
    public class NetWorkMissonParameter
    {
        public NetMissonType NMT = NetMissonType.NMT_LOGIN;
        public string Parameter = string.Empty;
    }
    public class NetWorkMissonResult
    {
        public NetMissonType NMT = NetMissonType.NMT_LOGIN;
        public string ReturnMessage = string.Empty;
        public bool Success = false;
    }
    public enum SceneType
    {
        Scene_Class,
        Scene_Exam,
        Scene_Prepare,
        Scene_ClassPrepare,
        Scene_ExamPrepare
    }
    public class ClassListInfo
    {
        public string Path { get; set; }
        public string ListInfo { get; set; }
        public override string ToString()
        {
            return ListInfo;
        }
    }
}
